<html>
<head>
	<link rel='stylesheet' href='../../resources/css/style.css' type='text/css'>
</head>
<body>

<? 
	//error_reporting(E_ALL);
	require_once "../../commons/includes/authentication.inc"; 	
	require_once "../../commons/includes/editjs.inc"; 
	require_once "../../commons/includes/stringutils.inc"; 
	require_once "../../commons/includes/connection.inc"; 
	
	$Codice = $_REQUEST["Codice"];
	$CodiceMateriale = $_REQUEST["CodiceMateriale"];
	
	$sql = "
			SELECT  
			DistintaMaterialiPrestazione.*,
			ArticoliEstensioni.*
			from DistintaMaterialiPrestazione 
			left join  ArticoliEstensioni on ArticoliEstensioni.CodiceArticolo=DistintaMaterialiPrestazione.CodiceMateriale
			where Codice='$Codice' AND CodiceMateriale like '$CodiceMateriale' ";
			
	$rs = rs($sql, "","Controllo");
	$editMode = "EDIT";
	$CodiceStatus="readonly";
	$btnsaveaddStyle="style='display:none'";
	$btndelete ="<input  type='button' class='button' value='  &nbsp;&nbsp;Elimina  ' id='btndelete'>";
	
	$CodicePrestazione = $Codice;
	
	
	while ($values = $rs->getRow()) { 
		foreach($values as $key=>$val) {
			$$key = $val; 
		}	
	}
	
	@$rs->freeResult();
	include "form.inc";
?>

	
</body>
</html>